package team.yidong.fenda.wx.controller;

import net.sf.json.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import team.yidong.fenda.service.KnowledgeService;

import javax.servlet.http.HttpSession;

/**
 * Created by xuanlong on 2018/3/15.
 */
@Controller
public class WxKnowledgeController {
    @Autowired
    KnowledgeService knowledgeService;

    @RequestMapping("/wx/findKnowledge")
    @ResponseBody
    public JSONArray findKnowledgeByHospitalId(@RequestParam Integer hospitalId) {

        return knowledgeService.findKnowledgeByHospitalId(hospitalId);

    }
}
